import React from 'react'
import "./cheap.css"
export default function newpeople(props) {
    let { cheap } = props
    return (
        <div className="cheap">
            <h3>优惠券</h3>
            {
                cheap ? cheap.map(item => (
                    item.content.map(i=>(
                        <div className="clearfix" key={i.id}>
                        <ul className="fr">
                            <li>{i.title}</li>
                            <li>
                                <span>￥{i.money}</span>
                            </li>
                            <li>
                            限￥{i.limit_money}
                            </li>
                            <li>开始时间{i.begintime}</li>
                            <li>
                                结束时间{i.endtime}
                            </li>
                            <li>
                                {i.description}
                            </li>
                        </ul>
                    </div>
                    ))
                )) : null
            }

        </div>
    )
}
